package com.ugoodtech.mdcc.core.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel("投诉单报告历史记录")
@Entity
@Table(name = "complaint_report_log")
public class ComplaintReportLog extends BaseEntity {

    @ApiModelProperty("用户姓名")
    private String userName = "";

    @ApiModelProperty("投诉单ID")
    private Long complaintReportId;

    @ApiModelProperty("对投诉单报告的操作")
    private String reportStatus = "";

    @ApiModelProperty("需要跟进的人")
    private String needFollowUser = "";

    @ApiModelProperty("操作的时间")
    private String time = "";

    @ApiModelProperty("报告类型,true为投诉报告,false为投诉解决方案")
    private Boolean reportType = true;

    @ApiModelProperty("是否显示为超时的橙色,true为显示,false默认不显示")
    private boolean isOrange = false;

    @ApiModelProperty("备注")
    private String note = "";

    @ApiModelProperty("操作人")
    private User user;

    @Column(name = "user_name")
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Column(name = "complaint_report_id")
    public Long getComplaintReportId() {
        return complaintReportId;
    }

    public void setComplaintReportId(Long complaintReportId) {
        this.complaintReportId = complaintReportId;
    }

    @Column(name = "report_status")
    public String getReportStatus() {
        return reportStatus;
    }

    public void setReportStatus(String reportStatus) {
        this.reportStatus = reportStatus;
    }

    @Column(name = "need_follow_user")
    public String getNeedFollowUser() {
        return needFollowUser;
    }

    public void setNeedFollowUser(String needFollowUser) {
        this.needFollowUser = needFollowUser;
    }

    @Column(name = "time")
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Column(name = "report_type")
    public Boolean getReportType() {
        return reportType;
    }

    public void setReportType(Boolean reportType) {
        this.reportType = reportType;
    }

    @Column(name = "is_orange")
    public boolean isOrange() {
        return isOrange;
    }

    public void setOrange(boolean orange) {
        isOrange = orange;
    }

    @Column(name = "note")
    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @ManyToOne
    @JoinColumn(name = "user_id")
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
